package com.yjx.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yjx.gulimall.common.utils.PageUtils;
import com.yjx.gulimall.product.entity.AttrEntity;
import com.yjx.gulimall.common.vo.product.AttrAttrgroupRelationEntityVO;
import com.yjx.gulimall.common.vo.product.AttrResponseVO;
import com.yjx.gulimall.common.vo.product.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author zhuyingcoder
 * @email 1210736981@qq.com
 * @date 2022-01-23 12:30:17
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<AttrEntity> getByAttrGroupId(Long attrGroupId);

    void saveAttr(AttrVO attr);

    PageUtils queryBasePage(Map<String, Object> params, Long catelogId,String type);

    AttrResponseVO getAttrById(Long attrId);

    PageUtils getNoRelationAttr(Map<String, Object> params, Long attrGroupId);

    void deleteAttRelation(AttrAttrgroupRelationEntityVO[] relationEntityArrayVO);

    void saveAttrRelation(AttrAttrgroupRelationEntityVO[] relationEntityVOS);

    void updateByAttrVoId(AttrVO attr);

    List<AttrEntity> getBatchByIds(List<Long> ids);
}

